﻿using System.ComponentModel.DataAnnotations;

namespace Koala.Pro.Core.Dto;

public class PagedInputDto : IPagedResultRequest, ILimitedResultRequest
{
    [Range(1, int.MaxValue)]
    public int MaxResultCount { get; set; }

    [Range(0, int.MaxValue)]
    public int SkipCount { get; set; }

    public PagedInputDto()
    {
        MaxResultCount = int.MaxValue;
        SkipCount = 0;
    }
}
